package resources;

import driver.Driver;
import java.util.concurrent.TimeUnit;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.openqa.selenium.WebDriver;
/**
 *
 * @author Einsiedler
 */
public class BasicTestCase {
    private static Driver driverclass;
    public static WebDriver driver;
    private static int count = 0;
    
    public BasicTestCase() {
    }
    
    //@BeforeClass
    public static void createDriver() {
        count++;
        System.out.println("COUNT = "+ count);       
        driverclass = new Driver();
        driver = driverclass.createdriver("firefox");
        driver.get("http://gmail.com");
        System.out.println(" BasicTestCase Driver created");
    }
    
    @AfterClass
    public static void closeDriver() {
        if(driver != null){
            driverclass.closedriver();
             System.out.println(" BasicTestCase Driver close");
        }
    }

}
